//
//  GRTopSearchReusableView.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/13.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GRPointSideButton.h"
#import "HistoryManager.h"

static NSString * const tableName         = @"HistoryOfSearch";

@protocol GRTopSearchReusableViewDelegate <NSObject>

- (void)deleteAllHistorys;

@end

@interface GRTopSearchReusableView : UICollectionReusableView

@property (nonatomic, weak) id <GRTopSearchReusableViewDelegate> delegate;

@property (weak, nonatomic) IBOutlet UILabel *textLabel;
@property (weak, nonatomic) IBOutlet GRPointSideButton *deleteBtn;
@property (weak, nonatomic) IBOutlet UILabel *noRecord;



/**
 配置title

 @param section <#section description#>
 @param count 历史记录的个数
 */
- (void)topTitleAtIndexPath:(NSInteger)section count:(NSInteger)count;

@end
